<script type="text/javascript">
<!--
$(function (){
	var iWidth = $(window).width()/2-300/2;
	$('#flashmessage').css('left',iWidth);
	$('#flashmessage').animate({
		height: 'toggle'
	}, 1000, function() {
		setTimeout(function (){$(flashmessage).fadeOut(2000);},3000);
	});

});
//-->
</script>

<?php
if ($this->session->flashdata('result') != '') {
	echo '<div id="flashmessage">'.$this->session->flashdata('result').'</div>';
}
?>




		<div class="span-15 colborder" id="content">
			<div class="span-12">


			<?=validation_errors(); ?>
			<?=form_open('top/index'); ?>
			<input type="hidden" name="id" value="<?=$id?>" />
			<fieldset>
            <legend><?=$legend?></legend>
            <p>
              <label for="name">名称</label><br>
			  <input type="text" class="text" id="name" name="name" value="<?=set_value('name')==""?$name:set_value('name');?>">
            </p>
			<p>
              <label for="url">URL</label><br>
			  <input type="text" class="text" id="url" name="url" value="<?=set_value('url')==""?$url:set_value('url');?>">
            </p>

			<p>
              <label for="order">排序</label><br>
			  <?=$order?>
            </p>

            <p>
			<?
			//echo form_submit('', 'Add');
			?>
              <input type="submit" value="提交">
              <input type="reset" value="重置">
            </p>

			</fieldset>
			</form>

			</div>
        </div>